/* 1videoConference -- An open source video conferencing platform.
* Copyright (C) 2007 - 2008, Adiance Technologies Pvt. Ltd.
*
* Hardik Sanghvi <hardik.sanghvi @adiance.com>
*
* See http://www.1videoconference.org for more information about
* the 1videoConference project. Please do not directly contact
* any of the maintainers of this project for assistance;
* the project provides a web site, forums and mailing lists
* for your use.
*
* This program is free software, distributed under the terms of
* the GNU General Public License Version 2. See the LICENSE file
* at the top of the source tree.
********************************************************************************/
using System;
using System.Collections.Generic;
using System.Text;
using System.ServiceModel;
using System.Reflection;

namespace _videoConference.BAL
{
    [ServiceContract(CallbackContract = typeof(IsvcLoginStatus))]
    public interface IsvcLoginStatus
    {
        [OperationContract(IsOneWay = true)]
        void svcJoin(string Role);

        [OperationContract(IsOneWay = true)]
        void svcDoLogin();
    }

    public interface IsvcLoginStatusChannel : IsvcLoginStatus, IClientChannel
    {
    }

    public class LoginClass : IsvcLoginStatus
    {
        public delegate void DelsvcJoin(string Role);
        public delegate void DelsvcDoLogin();

        public event DelsvcJoin EntsvcJoin;
        public event DelsvcDoLogin EntsvcDoLogin;

        public void svcJoin(string Role)
        {
            EntsvcJoin(Role);
        }

        public void svcDoLogin()
        {
            EntsvcDoLogin();
        }

    }

}